package com.zyd.blog.homeart.service;


import com.zyd.blog.persistence.beans.*;
import com.zyd.blog.persistence.beans.es.EsDesignArticle;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author liusongqi
 * @since 2020-02-10
 */
public interface IDesignArticleService {
    Map<String,Object> soft(String userId,int page,int count);

    Map<String,Object> searchDesign(String value,String userId,int page,int count);

    Map<String,Object> personalSoft(String userId,int page,int count,String style);

    Map<String,Object> personalSoftOrder(String userId,int page,int count,String style,String coverUserId);

    Map<String,Object> sort(String region, String sort, String style, String province, String city, String area, String userId,String place,int page,int count) throws Exception;

    Integer fabulous(String id,String userId,String category,String state) throws Exception;

    Integer addArticle(DesignArticle designArticle) throws Exception;


    Integer addArticleEdit(DesignArticleEdit designArticleEdit) throws Exception;

    Integer reduceZan(String id,String userId,String category,String state) throws Exception;

    Map<String,Object> specific(String designId, String userId, String designStyle, String designPlace) throws Exception;

    List<EsDesignArticle> getEsDesignArticle(int page, int limit);

    List<DesignArticle> recommendArticle(String designStyle,String designPlace) throws Exception;

    Integer updateDraft(String designId, String userId) throws Exception;

    Integer editDraft(String designId, String userId) throws Exception;

    Map<String,Object>  myAdd(String userId,int page,int count) throws Exception;

    Map<String,Object> index(String userId);

    DesignArticle bianji(String id);

    Integer delete(String id,String state) throws Exception;

    Integer update(DesignArticle designArticle);

    Integer tongguole(String id) throws Exception;

    List<Interest> interestAll();

    Integer stopUser(String userId);

    Integer passUser(String userId);
}
